package cn.lizhangqu.kb.adapter;

import android.content.Context;
import android.util.Log;

import cn.lizhangqu.kb.R;
import cn.lizhangqu.kb.model.Report;

/**
 * Created by 柯尊诚 on 2015/11/6.
 * kzc
 */
public class ReportAdapter extends CommonAdapter<Report>{

    public ReportAdapter(Context context, int layoutId) {
        super(context, layoutId);
    }

    @Override
    public void convert(ViewHolder vh, Report report) {
        Log.d("xxxx", report.toString());

        vh.setImageForUrl(R.id.iv_list_img, report.getImage());
        vh.setText(R.id.tv_list_title, report.getTitle());
        vh.setText(R.id.tv_list_date, report.getReleaseDate());
        vh.setText(R.id.tv_list_from, report.getEditorAuthor());
    }


}
